<template>
	<view class="containers">
		<view class="search flex-wrp">
			<view class="search-left flex-item">
				<image src="/static/images/icon_serach.png" class="img"></image>
				<input placeholder="会员名称/手机号" class="search-placeholder" />
			</view>
			<view class="search-right flex-item">
				<image src="/static/images/icon_add.png" class="img"></image>
			</view>

		</view>
		<block v-for="(item,index) in feed" :key="index">
			<view class="user-item flex-wrp" @click='toDetial'>
				<view class="avatar flex-item">
					<image src="/static/images/icon1.jpeg"></image>
				</view>
				<view class="item-content flex-item">

					<view class="content-title flex-item">
						<text class="content-title-a">{{item.name}}</text>
						<text class="content-title-a">{{item.phone}}</text>

						<text class="content-title-b">{{item.number}}</text>
					</view>
					<text class="item-title">会员编号：000002</text>
				</view>
			</view>
		</block>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				feed: [{
						name: "李四",
						phone: "13854612245",
						number: "李莎莎No.001"
					},
					{
						name: "张三",
						phone: "13854612245",
						number: "李莎莎No.002"
					},
					{
						name: "王五",
						phone: "13854612245",
						number: "李莎莎No.003"
					}
				]
			}
		},
		methods: {
			// 跳转详情
			toDetial() {
				uni.navigateTo({
					url: '/pages/user/detail/index',
				})
			},
		}
	}
</script>

<style>
	page {
		background-color: #f1f1f1;
	}

	.containers .search {
		width: 100%;
		padding: 12.5rpx 0 12.5rpx 15rpx;
		background: #ffffff;
		margin-bottom: 20rpx;
	}

	.containers .search-left {
		flex: 14;
		background: #fbfcfd;
		text-align: left;
		padding-left: 15rpx;
		padding-right: 10rpx;
		border-radius: 50rpx;
		margin-left: 16rpx;
		margin-top: 16rpx;
		margin-bottom: 16rpx;

		border: solid 1px #cfcfcf;
		color: #121212;
	}

	.containers .feed-item .feed-source {
		width: 1005;
		left: 0;
		height: 100rpx;
	}

	.containers .feed-item .feed-source .avatar-user {
		flex: 1;
		display: inline-block;
		width: 100rpx;
		height: 100rpx;
		border-radius: 80rpx;
	}

	.containers .search-left input {
		display: inline-block;
		height: 60rpx;
		font-size: 30rpx;
	}

	.search-placeholder {
		color: #cacbcc;
		line-height: 20rpx;
	}

	.containers .search .search-left .img {
		display: inline-block;
		width: 35rpx;
		height: 35rpx;
		padding: 20rpx 15rpx 15rpx 15rpx;
	}

	.containers .search .search-right {
		margin-top: 18rpx;
		margin-right: 10rpx;
	}

	.containers .search .search-right .img {
		width: 45rpx;
		height: 45rpx;
		padding: 12rpx;
	}

	.content-title {
		width: 100%;
		left: 0;
		height: 50rpx;
		font-size: 30rpx;
		display: flex;
	}

	.containers {
		padding: 0;
		font-size: 14rpx;
		background: #F0F4F3;
		color: #000;
	}

	.user-item {
		width: 100%;
		background: #ffffff;
		padding: 30rpx 20rpx 40rpx 0rpx;
		border-bottom: solid 1px #ebebeb;
	}

	.user-item image {
		width: 80rpx;
		height: 80rpx;
		border-radius: 80rpx;
	}

	.user-item .avatar {
		flex: 0.8;
	}

	.user-item.card {
		width: 20rpx;
		height: 20rpx;
	}

	.user-item .item-content {
		flex: 4;
		text-align: left;
	}

	.user-item .item-content.content {
		flex: 4;
		text-align: left;
	}

	.user-item .item-content .item-title {
		color: #AFAFAF;
		font-size: 26rpx;
		margin-top: 16rpx;
	}

	.content-right {
		justify-content: right;
		float: right;
	}

	.content-title-a {
		color: black;
		margin-right: 20rpx;
		margin-top: 6rpx;
	}

	.content-a {
		width: 50%;
		color: rgb(167, 165, 165);
		margin-right: 20rpx;
	}

	.content-title-b {
		background-color: #F4E2C8;
		color: #1E2129;
		font-weight: normal;
		border-radius: 10px;
		font-size: 28rpx;
		padding-top: 8rpx;
		padding-left: 20rpx;
		padding-right: 20rpx;
	}
</style>